home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / MiscKit1.7.1 / MiscKit / Headers / misckit / MiscDictionary.h < prev    next >
Encoding:
Text File  |  1995-04-12  |  1.0 KB  |  32 lines

  1. //
  2. // MiscDictionary.h -- HashTable subclass set up for unique string to
  3. //            object key/value pairs.  Access via HashTable methods.
  4. //        Written by Don Yacktman Copyright (c) 1994 by Don Yacktman.
  5. //                Version 1.0.  All rights reserved.
  6. //
  7. //        This notice may not be removed from this source code.
  8. //
  9. //    This object is included in the MiscKit by permission from the author
  10. //    and its use is governed by the MiscKit license, found in the file
  11. //    "LICENSE.rtf" in the MiscKit distribution.  Please refer to that file
  12. //    for a list of all applicable permissions and restrictions.
  13. //    
  14.  
  15. #import <objc/HashTable.h>
  16.  
  17. @interface MiscDictionary : HashTable
  18. {
  19. }
  20.  
  21. // Note:  keys are all expected to be MiscStrings!
  22.  
  23. - init;
  24. - initCapacity:(int)aCap; // designated initializer -- USE THIS OR -init ONLY!
  25. - (BOOL)isKey:(const void *)aKey;
  26. - (void *)valueForKey:(const void *)aKey;
  27. - (void *)insertKey:(const void *)aKey value:(void *)aValue;
  28. - (void *)removeKey:(const void *)aKey;
  29. - (BOOL)nextState:(NXHashState *)aState key:(const void **)aKey 
  30.     value:(void **)aValue;
  31.  
  32. @end